import { Injectable } from '@angular/core'
import { Router, NavigationExtras } from '@angular/router'

@Injectable()
export class AppRouterService {

    constructor(private router: Router) {

    }

    public navigate(commonds: any[], extras?: NavigationExtras): void {
        this.router.navigate(commonds, extras)
    }
}
